﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Drawing;
using Tsanie.ShellExtension;

namespace Tsanie {
    [ComVisible(true)]
    [ThumbnailProvider("Document thumbnail provider", ".doc")]
    [Guid("0F962E0D-CC66-4ae7-9722-302FD1E746DC")]
    public class HlvThumbnailProvider : ThumbnailProviderBase {

        public override Bitmap Thumbnail {
            get {
                Bitmap bmp = new Bitmap(256, 256);
                Graphics g = Graphics.FromImage(bmp);
                g.Clear(Color.Black);
                g.FillRectangle(new SolidBrush(Color.White), 10, 10, 236, 236);
                g.Dispose();
                return bmp;
            }
        }
    }
}
